package com.gistmap.sideline.util;

import org.springframework.util.StringUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class ValidatorUtil {
    private static final Pattern moblie_pattern  = Pattern.compile("1\\d{10}");

    public static Boolean isMobile(String str){
        if(StringUtils.isEmpty(str)){
            return false;
        }
        Matcher m  = moblie_pattern.matcher(str);
        return m.matches();
    }
}